package com.example.travel_front.Model;

public class NursingHome {
    private int id;
    private String image;
    private String name;
    private String location;
    private String feeRange;
    private float rating; // 可以用float表示评分，例如4.5星

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    // 构造函数
    public NursingHome(String image, String name, String location, String feeRange, float rating,int id) {
        this.image = image;
        this.name = name;
        this.location = location;
        this.feeRange = feeRange;
        this.rating = rating;
        this.id = id;
    }

    // Getters
    public String getImage() {
        return image;
    }

    public String getName() {
        return name;
    }

    public String getLocation() {
        return location;
    }

    public String getFeeRange() {
        return feeRange;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public void setFeeRange(String feeRange) {
        this.feeRange = feeRange;
    }

    public void setRating(float rating) {
        this.rating = rating;
    }

    public float getRating() {
        return rating;
    }

}


